package com.issac.vhr.service;

import com.issac.vhr.entity.Mail_send_log;
import com.issac.vhr.mapper.Mail_send_logMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class MailSendLogService {

    @Autowired
    Mail_send_logMapper mail_send_logMapper;

    public Integer updateMailSendLogStatus(String msgId, Integer status) {
        return mail_send_logMapper.updateMailSendLogStatus(msgId,status);

    }

    public Integer insert(Mail_send_log mailSendLog) {
        return mail_send_logMapper.insertSelective(mailSendLog);
    }

    public List<Mail_send_log> getMailSendLogsByStatus() {
        return mail_send_logMapper.getMailSendLogsByStatus();
    }

    public Integer updateMailSendLogCount(String msgId, Date date) {
        return mail_send_logMapper.updateMailSendLogCount(msgId,date);
    }
}
